#include "ClickableLabel.h"

ClickableLabel::ClickableLabel(QWidget *parent)
    : QLabel(parent) {
}

void ClickableLabel::mousePressEvent(QMouseEvent *event) {
    if (event->button() == Qt::LeftButton) { // 确保是左键点击
        emit clicked(); // 发射点击信号
    }
}
